<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>QuarkJS API Reference - Audio</title>

		<link href="../../css/bootstrap.css" rel="stylesheet">
	    <style type="text/css">
	      body {
	        padding-top: 60px;
	        padding-bottom: 40px;
	      }
	      .sidebar-nav {
	        padding: 9px 0;
	      }
	      .hero-unit {
	        padding: 30px;
	      }
	      .hero-unit p {
	        font-size: 16px;
	      }
	      .hero-unit li {
	        font-size: 16px;
	        line-height: 24px;
	      }
	      .fixedFont{
	      	font-family: courier;
	      }
	    </style>
	    <link href="../../css/bootstrap-responsive.css" rel="stylesheet">

	</head>

	<body>
		<div class="navbar navbar-fixed-top">
		  <div class="navbar-inner">
		    <div class="container-fluid">
		      <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		        <span class="icon-bar"></span>
		      </a>
		      <a class="brand" href="#">QuarkJS - An HTML5 Game Framework</a>
		      <div class="nav-collapse">
		        <ul class="nav">
		          <li><a href="../../index.html">首页</a></li>
		          <li><a href="http://github.com/quark-dev-team/quarkjs" target="_blank">源码下载</a></li>
		          <li class="active"><a href="../index.html">API文档</a></li>
		          <li><a href="../../tutorial.html">使用指南</a></li>
		          <li><a href="../../demo.html">作品演示</a></li>
		        </ul>
		      </div>
		    </div>
		  </div>
		</div>

		<div class="container-fluid">
      		<div class="row-fluid">
      			<div class="span3">
      				<div class="well sidebar-nav">
<ul class="nav nav-list">
  <li class="nav-header">类列表</li>
  
	<li></li>
	
	<li><a href="../symbols/Audio.html">Audio</a></li>
	
	<li><a href="../symbols/Bitmap.html">Bitmap</a></li>
	
	<li><a href="../symbols/Button.html">Button</a></li>
	
	<li><a href="../symbols/CanvasContext.html">CanvasContext</a></li>
	
	<li><a href="../symbols/Context.html">Context</a></li>
	
	<li><a href="../symbols/DisplayObject.html">DisplayObject</a></li>
	
	<li><a href="../symbols/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
	
	<li><a href="../symbols/DOMContext.html">DOMContext</a></li>
	
	<li><a href="../symbols/Drawable.html">Drawable</a></li>
	
	<li><a href="../symbols/EventDispatcher.html">EventDispatcher</a></li>
	
	<li><a href="../symbols/EventManager.html">EventManager</a></li>
	
	<li><a href="../symbols/Graphics.html">Graphics</a></li>
	
	<li><a href="../symbols/ImageLoader.html">ImageLoader</a></li>
	
	<li><a href="../symbols/MovieClip.html">MovieClip</a></li>
	
	<li><a href="../symbols/Quark.html">Quark</a></li>
	
	<li><a href="../symbols/Stage.html">Stage</a></li>
	
	<li><a href="../symbols/Text.html">Text</a></li>
	
	<li><a href="../symbols/Timer.html">Timer</a></li>
	
	<li><a href="../symbols/Tween.html">Tween</a></li>
	 
</ul>
</div>
      			</div>
      			<div class="span9">

      				<!-- ============================== class title ============================ -->
      				<h1 style="color:#333;">
  					
					Class Audio
      				</h1><br/>

          			<!-- ============================== class summary ========================== -->			
					<p class="description">
						
						
					
						Audio类是原生Audio的封装。
						
					</p>

					<!-- ============================== constructor summary ==================== -->			
					
					<h3 style="margin-bottom:6px;">构造函数概览</h3>
					<table class="table table-striped table-bordered table-condensed" cellspacing="0" summary="A summary of the constructor documented in the class Audio.">
						<thead>
							<tr>
								<th scope="col" style="width:10%;"></th>
								<th scope="col">说明</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td class="attributes">&nbsp;</td>
								<td class="nameDescription" >
									<div class="fixedFont">
										<b><a href="../symbols/Audio.html#constructor">Audio</a></b>(src, preload, autoPlay, loop)
									</div>
									<div class="description">构造函数.</div>
								</td>
							</tr>
						</tbody>
					</table>
					

					<!-- ============================== properties summary ===================== -->
					

					<!-- ============================== methods summary ======================== -->
					
						
						
						<h3 style="margin-bottom:6px;">方法概览</h3>
						<table class="table table-striped table-bordered table-condensed" cellspacing="0" summary="A summary of the methods documented in the class Audio.">
							<thead>
								<tr>
									<th scope="col" style="width:10%;"></th>
									<th scope="col">说明</th>
								</tr>
							</thead>
							<tbody>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/Audio.html#load">load</a></b>()
										</div>
										<div class="description">开始加载声音文件。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/Audio.html#loaded">loaded</a></b>()
										</div>
										<div class="description">指示声音文件是否已被加载。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/Audio.html#play">play</a></b>()
										</div>
										<div class="description">开始播放。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/Audio.html#playing">playing</a></b>()
										</div>
										<div class="description">指示声音是正在播放。</div>
									</td>
								</tr>
							
								<tr>
									<td class="attributes">&nbsp;</td>
									<td class="nameDescription">
										<div class="fixedFont"><b><a href="../symbols/Audio.html#stop">stop</a></b>()
										</div>
										<div class="description">停止播放。</div>
									</td>
								</tr>
							
							</tbody>
						</table>
						
						
						
					
					<!-- ============================== events summary ======================== -->
					

					<!-- ============================== constructor details ==================== -->		
					
					<div class="details"><a name="constructor"> </a>
						<h3 style="margin-bottom:6px;">构造函数详细信息</h3>
						
						<div class="fixedFont">
								<b>Audio</b>(src, preload, autoPlay, loop)
						</div>
						
						<div class="description">
							构造函数.
							
						</div>
						
						
						
						
							
								<dl class="detailList">
								<dt class="heading">参数:</dt>
								
									<dt>
										 <b>src</b>
										
									</dt>
										<dd>要加载的声音的地址。</dd>
								
									<dt>
										 <b>preload</b>
										
									</dt>
										<dd>指示是否自动加载，在某些浏览器下无效，如IOS上的Safari。</dd>
								
									<dt>
										 <b>autoPlay</b>
										
									</dt>
										<dd>指示是否自动播放，在某些浏览器下无效，如IOS上的Safari。</dd>
								
									<dt>
										 <b>loop</b>
										
									</dt>
										<dd>指示是否循环播放。</dd>
								
								</dl>
							
							
							
							
							
							
							

					</div>
					<hr/>
					

					<!-- ============================== field details ========================== -->		
					

					<!-- ============================== method details ========================= -->		
					
						<h3 style="margin-bottom:6px;">方法详细信息</h3>

						
							<a name="load"> </a>
							<div class="fixedFont">
							
							
							<b>load</b>()
							
							</div>
							<div class="description">
								开始加载声音文件。
								
								
							</div>
							
							
							
								
								
								
								
								
								
								

							<hr />
						
							<a name="loaded"> </a>
							<div class="fixedFont">
							
							
							<b>loaded</b>()
							
							</div>
							<div class="description">
								指示声音文件是否已被加载。
								
								
							</div>
							
							
							
								
								
								
								
								
								
								

							<hr />
						
							<a name="play"> </a>
							<div class="fixedFont">
							
							
							<b>play</b>()
							
							</div>
							<div class="description">
								开始播放。
								
								
							</div>
							
							
							
								
								
								
								
								
								
								

							<hr />
						
							<a name="playing"> </a>
							<div class="fixedFont">
							
							
							<b>playing</b>()
							
							</div>
							<div class="description">
								指示声音是正在播放。
								
								
							</div>
							
							
							
								
								
								
								
								
								
								

							<hr />
						
							<a name="stop"> </a>
							<div class="fixedFont">
							
							
							<b>stop</b>()
							
							</div>
							<div class="description">
								停止播放。
								
								
							</div>
							
							
							
								
								
								
								
								
								
								

							
						
					
					
					<!-- ============================== event details ========================= -->		
					


      			</div>
      		</div>

      		<hr>
      		<footer>
        		<p style="text-align:center;">&copy; QuarkJS Dev-Team 2012</p>
      		</footer>

      	</div>

		<script src="../../js/jquery.js"></script>
    	<script src="../../js/bootstrap.js"></script>

	</body>
</html>
